import sys
import time

file_object = open('thefile.txt')
while True:
    time.sleep(5)
    a = file_object.read()
    print(a)

